package file;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

/**
 * @Author: Miyako
 * @Date: 2024-07-16-11:32
 * @Description:拷贝图片
 */
public class CopyFileDemo01 {
    public static void main(String[] args) throws IOException {
        FileInputStream fil = new FileInputStream("13.png");
        FileOutputStream fol = new FileOutputStream("14.png");
        int n = fil.read();
        while (n!= -1){
            fol.write(n);
            System.out.println(n);
            n=fil.read();
        }
        fil.close();
        fol.close();
    }
}
